package com.example.factory.core.domain;

import javax.persistence.*;

/**
 * @author Lei Tao
 */
@Entity
@Table(name = "report_level_2_dimension")
public class ReportLevel2Dimension extends DomainObject{


    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "level_2_dimension_id")
    private Level2Dimension level2Dimension;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "report_level_1_dimension_id")
    private ReportLevel1Dimension reportLevel1Dimension;

    private Float score;

    public ReportLevel2Dimension() {
    }

    public ReportLevel1Dimension getReportLevel1Dimension() {
        return reportLevel1Dimension;
    }

    public void setReportLevel1Dimension(ReportLevel1Dimension reportLevel1Dimension) {
        this.reportLevel1Dimension = reportLevel1Dimension;
    }

    public Level2Dimension getLevel2Dimension() {
        return level2Dimension;
    }

    public void setLevel2Dimension(Level2Dimension level2Dimension) {
        this.level2Dimension = level2Dimension;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }
}
